package cn.powertime.evaluation.vo;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class RaqLionUserAddVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "帐号不能为空")
    @Pattern(regexp = "^[1][3,4,5,6,7,8][0-9]{9}$", message = "手机号不合法")
    private String account;

    @NotNull(message = "短信验证码不能为空")
    private String smsCode;

    @NotNull(message = "密码不能为空")
    private String password;

    @NotNull(message = "等保测评师编号不能为空")
    private  String classifiedNumber;


    @NotNull(message = "等保测评师名称不能为空")
    private  String classifiedName;


    @NotNull(message = "等保测评师等级不能为空")
    private  String classifiedGrade;

    private  String nickname;
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getClassifiedNumber() {
        return classifiedNumber;
    }

    public void setClassifiedNumber(String classifiedNumber) {
        this.classifiedNumber = classifiedNumber;
    }

    public String getClassifiedName() {
        return classifiedName;
    }

    public void setClassifiedName(String classifiedName) {
        this.classifiedName = classifiedName;
    }

    public String getClassifiedGrade() {
        return classifiedGrade;
    }

    public void setClassifiedGrade(String classifiedGrade) {
        this.classifiedGrade = classifiedGrade;
    }

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
